﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using XZL.GM.Bll;
using XZL.GM.Dal;


public partial class MyInfo_LecturerInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindLecturerInfo();     
        }
    }

   
    private void BindLecturerInfo()
    {

        string str = Request.QueryString["ApplyID"];
        if(str!=null)
        {
            int ApplyID = Convert.ToInt32(str);
           Proc_ApplyInfo_SelectInfoResult apply = ApplyInfoBiz.GetApplyInfo(ApplyID);


           lblRealName.Text = apply.RealName;
           lblLiveCity.Text = apply.LiveCity;
           lblPosition.Text = apply.Position;
           lblContact.Text = apply.Contact;
           lblConnectime.Text = apply.Connectime;
           lblReason.Text = apply.Reason;

        }

    }

    
    protected void btnPass_Click(object sender, EventArgs e)
    {
        string str = Request.QueryString["ApplyID"];
        int applyID = Convert.ToInt32(str);

        int status =Convert.ToInt32(st1.Visible);
        int i= ApplyInfoBiz.GetApplyStatus(applyID,1);
        status = i;

        //  ClientScript.RegisterStartupScript(this.GetType(), "", "as()", true);
        //  Response.Write("<script>window.close();</script>");
        Response.Redirect("Lecturer.aspx");
    }


    protected void btnNoPass_Click(object sender, EventArgs e)
    {
        string str = Request.QueryString["ApplyID"];
        int applyID = Convert.ToInt32(str);

        int status = Convert.ToInt32(st2.Visible);
        int i = ApplyInfoBiz.GetApplyStatus(applyID ,2);
        status = i;

        Response.Redirect("Lecturer.aspx");
    }

    

}